package com.wowudi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "patients")
public class Patients {
    /**
     * 病人ID
     */
    @TableId(value = "pt_id", type = IdType.AUTO)
    private Integer ptId;

    /**
     * 病人编号
     */
    @TableField(value = "pt_card")
    private String ptCard;

    /**
     * 病人姓名
     */
    @TableField(value = "pt_name")
    private String ptName;

    /**
     * 病人性别
     */
    @TableField(value = "pt_gender")
    private String ptGender;

    /**
     * 病人年龄
     */
    @TableField(value = "pt_age")
    private Integer ptAge;

    /**
     * 病人电话
     */
    @TableField(value = "pt_phone")
    private String ptPhone;

    /**
     * 挂号类型ID
     */
    @TableField(value = "rt_id")
    private Integer rtId;

    /**
     * 挂号费ID
     */
    @TableField(value = "rc_id")
    private Integer rcId;

    /**
     * 科室ID
     */
    @TableField(value = "dpc_id")
    private Integer dpcId;

    /**
     * 所属医师ID
     */
    @TableField(value = "w_id")
    private Integer wId;

    /**
     * 就诊状态ID
     */
    @TableField(value = "ts_id")
    private Integer tsId;

    /**
     * 创建时间
     */
    @TableField(value = "pt_create_time")
    private Date ptCreateTime;

    /**
     * 是否被删除
     */
    @TableField(value = "pt_isdel")
    private Integer ptIsdel;

    @TableField(exist = false)
    private DepartmentClass departmentClass;
    @TableField(exist = false)
    private RegisterCost registerCost;
    @TableField(exist = false)
    private RegisterType registerType;
    @TableField(exist = false)
    private SysUser sysUser;
}